{extend name="public/base" /}
{block name="style"}<link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> {/block}
 {block name="body"}
  <div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li>
			<a href="{:url('index')}">联盟商家信息</a>
		</li>
		<li><strong>审核联盟商家信息</strong></li>
	</ol>
</div>
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('edit')}">
					<input type="hidden" name="id" value="{$ad.id}" />
					<div class="form-group">
						<label class="col-sm-3 control-label">名称：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="name" name="name" value="{$ad.name}" readonly="" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">地址：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="address" name="address" value="{$ad.address}" readonly=""  class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">logo：</label>
						<div class="input-group col-sm-4">
							<input type="hidden" id="thumb" name="thumb" value="{$ad.thumb}"/>
							<input id="upload" name="upload" type="file" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">二维码：</label>
						<div class="input-group col-sm-4">
							<input type="hidden" id="qecode" name="qecode" value="{$ad.qecode}"/>
							<input id="upload" name="upload" type="file" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">电话：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="store_tel" name="store_tel" value="{$ad.store_tel}" readonly=""  class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">负责人：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="shopowner" name="shopowner" value="{$ad.shopowner}" readonly=""  class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">所在经度：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="longitude" name="longitude" value="{$ad.longitude}" readonly=""  class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">所在纬度：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="latitude" name="latitude" value="{$ad.latitude}" readonly=""  class="form-control" />
						</div>
					</div>	
					<div class="form-group">
						<label class="col-sm-3 control-label">描述：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="content" name="content" value="{$ad.content}" readonly=""  class="form-control" />
						</div>
					</div>	
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">排序：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="sort" name="sort" value="{$ad.sort}" readonly="" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">审核意见：</label>
						<div class="input-group col-sm-4">
							<textarea id="auditopin" name="auditopin" class="form-control" style="height:100px;" >{$ad.auditopin}</textarea>
						</div>
					</div>
					
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							{if $ad.status == 2}
							<butto class="btn btn-primary" > 审核已通过</button>&nbsp;&nbsp;
							{/if}
							
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<a href="{:url('index')}" class="btn btn-danger"><i class="fa fa-arrow-left"></i> 返回 </a>
						</div>
					</div>
					
				</form>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
	upload_one('{$ad.thumb}');
</script>
{/block}